package com.async.designpatterns.structure.bridge;

public class MaleNormalCard extends Card {

    public MaleNormalCard(){
        Color red = new Color() {
            @Override
            public String getColor() {
                return "Red";
            }
        };
        Sex sex = new Sex() {
            @Override
            public String getSex() {
                return "Male";
            }
        };
        CardType type = new CardType() {
            @Override
            public String getCardType() {
                return "Normal type";
            }
        };
        setColor(red);
        setType(type);
        setSex(sex);
    }

    @Override
    void description() {
        System.out.println("the card description: color: " + this.color.getColor() + " \n,sex:"+this.sex.getSex() +" \n,type:"+this.type.getCardType());
    }
}
